<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso8859-1">
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta name="author" content="Alexander Minza">
<link rel="stylesheet" href="office10.css" type="text/css">
<title>Reference - Cos Function</title>
</head>

<body>

<h1 class="RH1">Cos Function</h1>
<p class="T">Returns the cosine of the given angle.</p>
<p class="RL"><b>Syntax</b></p>
<p class="SYN"><b>cos</b>(<b>number</b>)</p>
<p class="DT1">Number&nbsp;&nbsp; is any valid
<a href="reference_numeric_expression.htm">numeric expression</a> that expresses 
an angle in radians.</p>
<p class="RL"><b>Remarks</b></p>
<p class="DT1">The <b>cos</b> function takes an angle and returns the ratio of 
two sides of a right triangle. The ratio is the length of the side adjacent to 
the angle divided by the length of the hypotenuse.</p>
<p class="DT1">The result lies in the range -1 to 1.</p>
<p class="DT1">If your argument is in degrees, multiply it by
<a href="reference_pi.htm">pi</a>/180 or use the <a href="reference_radians.htm">
radians</a> function to convert it to radians.</p>
<p class="RL"><b>Example</b></p>
<table border="0" cellPadding="4" cellSpacing="4" class="tableup" width="100%">
  <tr>
    <th>Expression</th>
    <th>Description (Result)</th>
  </tr>
  <tr valign="top">
    <td>cos(1.047)</td>
    <td>Cosine of 1.047 radians (0.500171)</td>
  </tr>
  <tr valign="top">
    <td>cos(60*pi/180)</td>
    <td>Cosine of 60 degrees (0.5)</td>
  </tr>
  <tr valign="top">
    <td>cos(radians(60))</td>
    <td>Cosine of 60 degrees (0.5)</td>
  </tr>
</table>
</td>
</tr>
</tbody>
</table>

</body>

</html>
